package com.tea.Model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("goods")
public class Goods {

    @TableId(type = IdType.AUTO)
    private Long id;
    //商品名称
    private String name;
    //描述
    private String description;
    //所属分类
    private String categoryId;
    //上架状态
    private String status;
    //图片地址
    private String otherImages;
    //封面图地址
    private String coverImage;
    //显示顺序
    private Integer displayOrder;
    //逻辑删除字段 0-未删除 1-已删除
    @TableLogic
    private Integer deleted;
}
